Tegra: fix PLATFORM_{CORE_COUNT|NUM_AFFS} macros
authorVarun Wadekar <[email protected]>
Wed, 12 Aug 2015 03:54:50 +0000 (09:24 +0530)
committerVarun Wadekar <[email protected]>
Wed, 12 Aug 2015 03:54:50 +0000 (09:24 +0530)
This patch fixes the following macros for Tegra SoCs.

* PLATFORM_CORE_COUNT: PLATFORM_CLUSTER_COUNT * PLATFORM_MAX_CPUS_PER_CLUSTER
* PLATFORM_NUM_AFFS: PLATFORM_CORE_COUNT + PLATFORM_CLUSTER_COUNT + 1

Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/include/platform_def.h

index d4b0ce20b629c33abc6907f2bef26cf6164f9584..c59e2beb2072848bdf0069ce8225aba21331dacc 100644 (file)
 #define TEGRA_PRIMARY_CPU              0x0
 
 #define PLATFORM_MAX_AFFLVL            MPIDR_AFFLVL2
-#define PLATFORM_CORE_COUNT            PLATFORM_MAX_CPUS_PER_CLUSTER
-#define PLATFORM_NUM_AFFS              ((PLATFORM_CLUSTER_COUNT * \
-                                         PLATFORM_CORE_COUNT) + \
-                                         PLATFORM_CLUSTER_COUNT + 1)
+#define PLATFORM_CORE_COUNT            (PLATFORM_CLUSTER_COUNT * \
+                                        PLATFORM_MAX_CPUS_PER_CLUSTER)
+#define PLATFORM_NUM_AFFS              (PLATFORM_CORE_COUNT + \
+                                        PLATFORM_CLUSTER_COUNT + 1)
 
 /*******************************************************************************
  * Platform console related constants